/*============================================================
File name: ipark.c
Originator: XXW THU
Description: define the functions related with ipark
Reference: none
============================================================
History:2017-07-19 Version 1.0
------------------------------------------------------------*/
#include  "F28x_Project.h"
#include <math.h>
#include "ipark.h"

#pragma CODE_SECTION(ipark_calc,".TI.ramfunc");
//======== Definations for functions ===========================
void ipark_calc(IPARK *p)
{
   p->Alpha = p->Ds * p->Cos - p->Qs * p->Sin;
   p->Beta  = p->Qs * p->Cos + p->Ds * p->Sin;  
}
//==============================================================
//End of file.
//==============================================================
